﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BIStudio.Framework.Utils;
using Microsoft.Practices.Unity.InterceptionExtension;

namespace BIStudio.Framework.Log
{
    public class ExceptionLogAttribute : AopAttribute
    {
        protected override void OnException(IMethodInvocation input, Exception ex)
        {
            LogService.Default.WriteError("统一的异常处理，异常原因：" + ALSerialize.JsonSerialize(ex));
        }
    }
}
